package com.cb.domain.model.order;


import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Flight Base Java Bean, base class for the model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 *
 * 航班信息
 */
@Entity
@Table(name="flight")
public class Flight implements Serializable {

    protected Long id;
	protected String code;
	protected String cabin;
	protected String flightName;
	protected String dep;
	protected String arr;
	protected String depDay;
	protected String depTime;
	protected String arrDay;
	protected String arrTime;
	protected Long mileage;
	protected String flightTime;
	protected String ccabin;
	protected String realCode;
	protected com.cb.domain.model.order.BOrder order;

	protected String boardPointName;
	protected String offPointName;
	protected Integer stop;


	@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
	@JoinColumn(name = "orderId", unique = false, nullable = true, insertable = true, updatable = true)
	public com.cb.domain.model.order.BOrder getOrder() {
		return order;
	}

	public void setOrder(com.cb.domain.model.order.BOrder order) {
		this.order = order;
	}

	/**
	 * 	 * @return Long
     * @hibernate.id column="id" type="java.lang.Long" generator-class="native"
	 */
	
	@Id     
    @GeneratedValue(generator="Id_Generator")
    @GenericGenerator(name="Id_Generator", strategy="com.cb.common.util.IdGenerator")
	public Long getId() {
		return this.id;
	}
	
	@Column(name = "boardPointName")	
	public String getBoardPointName() {
		return boardPointName;
	}

	public void setBoardPointName(String boardPointName) {
		this.boardPointName = boardPointName;
	}

	@Column(name = "offPointName")	
	public String getOffPointName() {
		return offPointName;
	}

	public void setOffPointName(String offPointName) {
		this.offPointName = offPointName;
	}
	
	@Column(name = "stop")	
	public Integer getStop() {
		return stop;
	}

	public void setStop(Integer stop) {
		this.stop = stop;
	}

	/**
	 * Set the id
	 */	
	public void setId(Long aValue) {
		this.id = aValue;
	}	

	/**
	 * 航班号	 * @return String
	 * @hibernate.property column="code" type="java.lang.String" length="100" not-null="false" unique="false"
	 */
	
	@Column(name = "code")	
	public String getCode() {
		return this.code;
	}
	
	/**
	 * Set the code
	 */	
	public void setCode(String aValue) {
		this.code = aValue;
	}	

	/**
	 * 舱位	 * @return String
	 * @hibernate.property column="cabin" type="java.lang.String" length="100" not-null="false" unique="false"
	 */
	
	@Column(name = "cabin")	
	public String getCabin() {
		return this.cabin;
	}
	
	/**
	 * Set the cabin
	 */	
	public void setCabin(String aValue) {
		this.cabin = aValue;
	}	

	/**
	 * 航空公司	 * @return String
	 * @hibernate.property column="flightName" type="java.lang.String" length="100" not-null="false" unique="false"
	 */
	
	@Column(name = "flightName")	
	public String getFlightName() {
		return this.flightName;
	}
	
	/**
	 * Set the flightName
	 */	
	public void setFlightName(String aValue) {
		this.flightName = aValue;
	}	

	/**
	 * 出发机场	 * @return String
	 * @hibernate.property column="dep" type="java.lang.String" length="100" not-null="false" unique="false"
	 */
	
	@Column(name = "dep")	
	public String getDep() {
		return this.dep;
	}
	
	/**
	 * Set the dep
	 */	
	public void setDep(String aValue) {
		this.dep = aValue;
	}	

	/**
	 * 到达机场	 * @return String
	 * @hibernate.property column="arr" type="java.lang.String" length="100" not-null="false" unique="false"
	 */
	
	@Column(name = "arr")	
	public String getArr() {
		return this.arr;
	}
	
	/**
	 * Set the arr
	 */	
	public void setArr(String aValue) {
		this.arr = aValue;
	}	

	/**
	 * 出发时间	 * @return String
	 * @hibernate.property column="depDay" type="java.lang.String" length="50" not-null="false" unique="false"
	 */
	
	@Column(name = "depDay")	
	public String getDepDay() {
		return this.depDay;
	}
	
	/**
	 * Set the depDay
	 */	
	public void setDepDay(String aValue) {
		this.depDay = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="depTime" type="java.lang.String" length="50" not-null="false" unique="false"
	 */
	
	@Column(name = "depTime")	
	public String getDepTime() {
		return this.depTime;
	}
	
	/**
	 * Set the depTime
	 */	
	public void setDepTime(String aValue) {
		this.depTime = aValue;
	}	

	/**
	 * 到达时间	 * @return String
	 * @hibernate.property column="arrDay" type="java.lang.String" length="50" not-null="false" unique="false"
	 */
	
	@Column(name = "arrDay")	
	public String getArrDay() {
		return this.arrDay;
	}
	
	/**
	 * Set the arrDay
	 */	
	public void setArrDay(String aValue) {
		this.arrDay = aValue;
	}	

	/**
	 * 到达日期	 * @return String
	 * @hibernate.property column="arrTime" type="java.lang.String" length="50" not-null="false" unique="false"
	 */
	
	@Column(name = "arrTime")	
	public String getArrTime() {
		return this.arrTime;
	}
	
	/**
	 * Set the arrTime
	 */	
	public void setArrTime(String aValue) {
		this.arrTime = aValue;
	}	

	/**
	 * 里程	 * @return Long
	 * @hibernate.property column="mileage" type="java.lang.Long" length="19" not-null="false" unique="false"
	 */
	
	@Column(name = "mileage")	
	public Long getMileage() {
		return this.mileage;
	}
	
	/**
	 * Set the mileage
	 */	
	public void setMileage(Long aValue) {
		this.mileage = aValue;
	}	

	/**
	 * 飞行时间	 * @return String
	 * @hibernate.property column="flightTime" type="java.lang.String" length="50" not-null="false" unique="false"
	 */
	
	@Column(name = "flightTime")	
	public String getFlightTime() {
		return this.flightTime;
	}
	
	/**
	 * Set the flightTime
	 */	
	public void setFlightTime(String aValue) {
		this.flightTime = aValue;
	}	

	/**
	 * 儿童舱位	 * @return String
	 * @hibernate.property column="ccabin" type="java.lang.String" length="50" not-null="false" unique="false"
	 */
	
	@Column(name = "ccabin")	
	public String getCcabin() {
		return this.ccabin;
	}
	
	/**
	 * Set the ccabin
	 */	
	public void setCcabin(String aValue) {
		this.ccabin = aValue;
	}	

	/**
	 * 真实航班号	 * @return String
	 * @hibernate.property column="realCode" type="java.lang.String" length="50" not-null="false" unique="false"
	 */
	
	@Column(name = "realCode")	
	public String getRealCode() {
		return this.realCode;
	}
	
	/**
	 * Set the realCode
	 */	
	public void setRealCode(String aValue) {
		this.realCode = aValue;
	}	

}